package com.taysear.parcel.itext.table;

import com.lowagie.text.Font;
import com.lowagie.text.FontFactory;
import com.lowagie.text.Phrase;
import com.taysear.parcel.util.Constants;

public class PdfPCell extends com.lowagie.text.pdf.PdfPCell {
	
	public PdfPCell(Phrase p){
		super(p);
	}

	public PdfPCell(String s) {
		super(new Phrase(s, Constants.DEFAULT_FONT));
	}
	
	public PdfPCell(String s, Boolean isBold) {
		super(new Phrase(s, FontFactory.getFont(FontFactory.TIMES_BOLD)));
	}
	
	public PdfPCell(String s, Boolean isBold, Boolean isUnderline) {
		super(new Phrase(s, FontFactory.getFont(FontFactory.TIMES_BOLD, 10, Font.UNDERLINE)));
	}
	
	public PdfPCell(String s, int fontSize) {
		super(new Phrase(s, FontFactory.getFont(FontFactory.TIMES_ROMAN, fontSize)));
	}
}
